package com.dcy.znoa.service.publiz;

import com.dcy.znoa.common.exception.BusinessException;
import com.dcy.znoa.common.util.pojo.JsonCommon;
import com.dcy.znoa.common.util.pojo.JsonForList;
import com.dcy.znoa.controller.publiz.model.duty.SelectDutyModel;
import com.dcy.znoa.domain.publiz.Duty;

import java.lang.reflect.InvocationTargetException;

public interface DutyService {

    JsonCommon insert(Duty var1);

    JsonCommon updateById(Duty var1);//修改和逻辑删除都用这个方法实现

    JsonForList selectList(SelectDutyModel model) throws InvocationTargetException, IllegalAccessException;

    JsonCommon deleteById(Duty cp) throws BusinessException;
}
